package com.service;

import com.dao.Dao;
import com.dao.MasterIndexDao;
import com.domain.Domain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ServiceOne {
    @Autowired
    private Dao dao;
    @Autowired
    private MasterIndexDao masterIndexDao;
    @Autowired
    private Domain domain;

    public String printService1() {
        System.out.println("=============== Service1 =================");
        List<Map> list = masterIndexDao.textDao1();
        StringBuilder strBui = new StringBuilder();
        strBui.append("我是service1");
        strBui.append("; ");
        strBui.append(dao.printDao());
        strBui.append("; ");
        strBui.append(domain.printDomain());
        return strBui.toString();
    }
}
